Allow dry-run in ShellCommandAgent

Akinori MUSHA 9 years ago
parent
commit
4ca6504314
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/models/agents/shell_command_agent.rb

+ 2 - 0
app/models/agents/shell_command_agent.rb

@@ -2,6 +2,8 @@ module Agents
2 2
   class ShellCommandAgent < Agent
3 3
     default_schedule "never"
4 4
 
5
+    can_dry_run!
6
+
5 7
     def self.should_run?
6 8
       ENV['ENABLE_INSECURE_AGENTS'] == "true"
7 9
     end